﻿<cfsilent>
	<cfscript>

		menuArgs = structNew();
		
		structInsert(menuArgs, "TID", event.getArg("TID"), true);
		structInsert(menuArgs, "TSK", event.getArg("TSK"), true);
		structInsert(menuArgs, "TT", event.getArg("TT"), true);
		
		if ( event.isArgDefined("TSKTIME") ) {
			structInsert(menuArgs, "TSKTIME", event.getArg("TSKTIME"), true);
		}
		if ( event.isArgDefined("TSKROOM") ) {
			structInsert(menuArgs, "TSKROOM", event.getArg("TSKROOM"), true);
		}
		if ( event.isArgDefined("W") ) {
			structInsert(menuArgs, "W", event.getArg("W"), true);
		}
		if ( event.isArgDefined("CLSROOM") ) {
			structInsert(menuArgs, "CLSROOM", event.getArg("CLSROOM"), true);
		}
		if ( event.isArgDefined("DOCID") ) {
			structInsert(menuArgs, "DOCID", event.getArg("DOCID"), true);
		}
		
		
		classStep01 = "";
		classStep02 = "";
		classStep03 = "";
		classStep04 = "";
		classStep05 = "lastStep";


		if ( event.getRequestName() eq "taskChangeWizardPlace" ) {
			classStep01 = listAppend(classStep01, "current", " ");
		}

		if ( event.getRequestName() eq "taskChangeWizardPlaceLecture" or event.getRequestName() eq "taskChangeWizardPlaceRoom" or event.getRequestName() eq "programSchemaWizardCreateEntity" ) {
			classStep01 = listAppend(classStep01, "lastDone", " ");
			classStep02 = listAppend(classStep02, "current", " ");
		}

		if ( event.getRequestName() eq "taskChangeWizardPlaceRoom" or event.getRequestName() eq "programSchemaWizardModifyDirectionEntity" or event.getRequestName() eq "programSchemaWizardCreateDirectionEntity" ) {
			classStep01 = listAppend(classStep01, "done", " ");
			classStep02 = listAppend(classStep02, "lastDone", " ");
			classStep03 = listAppend(classStep03, "current", " ");
		}
		
		if ( event.getRequestName() eq "taskChangeWizardPlaceSign" or event.getRequestName() eq "programSchemaWizardCreateDegreeEntity" or event.getRequestName() eq "programSchemaWizardCreateSecDegreeEntity" or event.getRequestName() eq "programSchemaWizardCreateAssistDegreeEntity" ) {
			classStep01 = listAppend(classStep01, "done", " ");
			classStep02 = listAppend(classStep02, "done", " ");
			classStep03 = listAppend(classStep03, "lastDone", " ");
			classStep04 = listAppend(classStep04, "current", " ");
		}
		
		if ( event.getRequestName() eq "taskChangeWizardPlacePrint" ) {
			classStep01 = listAppend(classStep01, "done", " ");
			classStep02 = listAppend(classStep02, "done", " ");
			classStep03 = listAppend(classStep03, "done", " ");
			classStep04 = listAppend(classStep04, "lastDone", " ");
			classStep05 = listAppend(classStep05, "current", " ");
		}

	</cfscript>
</cfsilent>

<div class="UIWizard clearfix">
	<ul class="fiveStep stepNavigation">
		<li class="<cfoutput>#classStep01#</cfoutput>"><a <cfif listFind(classStep01, "current", " ") or listFind(classStep02, "current", " ") or listFind(classStep03, "current", " ") or listFind(classStep04, "current", " ")> href="<cfoutput>#buildURL('taskChangeWizardPlace', menuArgs)#</cfoutput>"</cfif>><em>选择周次</em><span>选定周次</span></a></li>
		<li class="<cfoutput>#classStep02#</cfoutput>"><a <cfif listFind(classStep02, "current", " ") or listFind(classStep03, "current", " ") or listFind(classStep04, "current", " ")> href="<cfoutput>#buildURL('taskChangeWizardPlaceLecture', menuArgs)#</cfoutput>"</cfif>><em>选择节次</em><span>选择课程节次</span></a></li>
		<li class="<cfoutput>#classStep03#</cfoutput>"><a <cfif listFind(classStep03, "current", " ") or listFind(classStep04, "current", " ")> href="<cfoutput>#buildURL('taskChangeWizardPlaceRoom', menuArgs)#</cfoutput>"</cfif>><em>选择教室</em><span>选择要更换的教室</span></a></li>
		<li class="<cfoutput>#classStep04#</cfoutput>"><a <cfif listFind(classStep04, "current", " ")> href="<cfoutput>#buildURL('taskChangeWizardPlaceSign', menuArgs)#</cfoutput>"</cfif>><em>更换确认</em><span>确认更换</span></a></li>
		<li class="<cfoutput>#classStep05#</cfoutput>"><a <cfif listFind(classStep05, "current", " ")> href="<cfoutput>#buildURL('taskChangeWizardPlacePrint', menuArgs)#</cfoutput>"</cfif>><em>更换回执</em><span>更换以后查看回执单</span></a></li>
	</ul>
</div>
